package com.pandora.templating;

import java.util.Set;
import java.util.Hashtable;

import com.pandora.model.Parameter;
import com.pandora.model.ParameterTable;

@SuppressWarnings("serial")
public class ParameterTemplateTable<T2 extends Parameter, T extends ParameterTemplate<T2>> extends Hashtable<String,T> {

	protected ParameterTable<T2> getInstance() {
		ParameterTable<T2> ret = new ParameterTable<T2>();
		Set<String> keys = super.keySet();
		for (String key : keys) {
			ret.put(key,super.get(key).getInstance());
		}
		return ret;
	}
}
